<template>
  <div>
    <div class="weenkend-title">周末去哪儿</div>
    <div class="weenkend-con">
      <ul>
        <li class="item" v-for='item of list' :key='item.id'>
          <div class='itemImg'>
            <img :src="item.imgUrl" alt="">
          </div>
          <div class="itemInfo">
            <p class="infoDscr">{{item.title}}</p>
            <p class="infoSumary">{{item.desc}}</p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default{
  name: 'weekend',
  props: {
    list: Array
  }
}
</script>
<style lang='stylus' scoped>
@import "~styles/mixins.styl"
.weenkend-title
  height: .6rem
  line-height: .6rem
  text-indent: .2rem
  background-color: #ddd
.weenkend-con
  // overflow: hidden
  .itemImg
    height: 0
    padding-bottom: 38%
    img
      width: 100%
  .itemInfo
    padding: .2rem
    overflow: hidden
    .infoDscr
      line-height: .44rem
      font-size: .33rem
      color: #212121
      ellipsis()
    .infoSumary
      line-height: .4rem
      font-size: .3rem
      color: #616161
      ellipsis()
</style>
